﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using ElectronicCommerce.Framework.Collections;

namespace ElectronicCommerce.Framework.ServiceModel.Configuration
{
    /// <summary>
    /// 
    /// </summary>
    public class ServiceServerElement : IKeyedObject
    {
        private string name;
        private string address;

        public string Key
        {
            get { return this.name; }
        }

        /// <summary>
        /// 服务器名称
        /// </summary>
        [XmlAttribute("name")]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        /// <summary>
        /// 服务器地址
        /// </summary>
        [XmlAttribute("address")]
        public string Address
        {
            get { return address; }
            set { address = value; }
        }
    }
}
